<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var name;
        var age;
        var gender;

        function fun1() {
            prompt("请输入name");
            prompt("请输入age");
            prompt("请输入gender");
        }
        fun1()
        fun()

        function fun() {
            alert("Hello大家好，我是:" + this.name);
        };
    </script>
</body>

</html>